<template>
  <div>
      <h3>我是哥哥</h3>
      <h4 v-text="xd"></h4>
      <h4 v-text="xd1"></h4>
  </div>
</template>

<script>
export default {
  data: function() {
    return {
        xd:'',
        xd1:''
    }
  },
  created() {
      //监听
      this.$bus.$on('xd',this.fa);
      this.$bus.$on('xd1',this.fa1);
  },
   methods: {
       fa(e){
           console.log(e)
           this.xd=e
       },
       fa1(e){
           console.log(e)
           this.xi1=e
       }
   }
}
</script>
<style lang='less' scoped>
</style>
